/**
 * author:Administrator
 * date:2016/1/5
 */

'use strict';
var request = require('request');
var registry = require('./config/index.js').registry;

function register(cb) {
  console.log('now registr self \n', registry);
  request(registry, function (err, res, data) {
    console.log('abc');
    cb && cb(err, data);
  });
}

module.exports = register;

//register(function (err, data) {
//  console.log('registry result:');
//  if (err) console.log(err);
//  else console.log(data);
//});

